package com.wbt.bambootown.mvp.model;

import com.wbt.bambootown.entity.Facility;
import com.wbt.bambootown.entity.CameraDevices;
import com.wbt.bambootown.entity.Farms;
import com.wbt.bambootown.entity.response.BaseResponse;
import com.wbt.bambootown.mvp.frame.MvpModel;
import java.util.List;
import rx.Observable;

public class HomeModel extends MvpModel {
    public Observable<BaseResponse<List<Farms>>> getFarms(String id){
        return mApiService.getFarms(id);
    }

    public Observable<BaseResponse<List<Facility>>> getFacilities(int id){
        return mApiService.getFacilities(id);
    }

    public Observable<BaseResponse<List<CameraDevices>>> getCameraDevices(int id){
        return mApiService.getCameraDevices(id);
    }
}
